package com.foreknow.elmboot.service;

import com.foreknow.elmboot.po.DeliveryAddress;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface DeliveryAddressService {


    public List<DeliveryAddress> listDeliveryAddressByUserId(String userId);

    /**
     * 根据daId 查询某一个地址信息
     */
    public DeliveryAddress getDeliveryAddressById(Integer daId);

    /**
     * 新增地址
     */
    public int addDeliveryAddress(DeliveryAddress deliveryAddress);

    /**
     * 修改地址
     */
    public int updateDeliveryAddress(DeliveryAddress deliveryAddress);


    /**
     * 删除地址
     */
    public int deleteDeliveryAddressById(Integer daId);
}
